#pragma once

#include <iostream>
#include <memory>
#include "Epoller.hpp"
#include "Socket.hpp"
#include "Log.hpp"
#include "InetAddr.hpp"
#include "Connection.hpp"

using namespace SocketModule;

class IOService: public Connection
{
public:
    IOService(int sockfd)
    {
        SetSockfd(sockfd);
        SetEvents(EPOLLIN | EPOLLET);
    }
    virtual void Sender() override
    {

    }
    // 有天然父类 connection 
    virtual void Recver() override
    {
        LOG(LogLevel::DEBUG) << "haha, I am Recver";
    }
    virtual void Excepter() override
    {
    }
    ~IOService()
    {}

};